<!DOCTYPE html>

<?php $this->load->helper('url'); ?>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"  lang="sr-RS"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>HR application • Dynamint</title>
        <meta name="description" content="HR application">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />
        <!-- Styles -->
        <link rel="stylesheet" href="<?php echo base_url() ?>css/uikit.min.css">
        <link rel="stylesheet" href="<?php echo base_url() ?>css/main.css">
        <link rel="stylesheet" href="<?php echo base_url() ?>css/main-organogram.css">
        <link rel="stylesheet" href="<?php echo base_url() ?>css/responsive.css"> 
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/jqueryui/smoothness/jquery-ui-1.10.3.custom.min.css"/>
        

        <script src="<?php echo base_url() ?>js/vendor/modernizr-2.6.2.min.js"></script>
        <style type="text/css">
                ul, li, span, table, body {
                    -webkit-user-select: none;
                    -khtml-user-select: none;
                    -moz-user-select: none;
                    -o-user-select: none;
                    user-select: none;
                }
        </style>
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        <div class="pristup">
            <div class="uk-badge">administrator</div><br/>
        </div>
        <div id="top">
            <div class="uk-container uk-container-center">
                
                <div class="uk-grid">
                    <div class="uk-width-1-4 logo">
                        <div class="uk-width-1-1 "><span>merit</span> plan</div>
                        <div class="uk-width-1-1 logosmall">upravljanje ljudskim resursima<br /> i organizacioni razvoj</div>
                    </div>
                    <div class="uk-width-2-4 uk-text-center"><h2>Organogram s</h2><p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr</p></div>
                    <div class="uk-width-1-4">
                        <div class="uk-grid uk-text-right usertop">
                            <div class="uk-width-3-4"><?php echo $user[0]->first_name ?> <?php echo $user[0]->last_name ?>
                                <?php if ($user[0]->user_level==1): ?>
                                <div class="useruloga">
                                    <div class="uk-badge uk-badge-success">korisnik</div>
                                </div>
                                <?php endif; ?>
                                <?php if ($user[0]->user_level==2): ?>
                                <div class="useruloga">
                                    <div class="uk-badge uk-badge-warnning">supervizor</div>
                                </div>
                                <?php endif; ?>
                                 <?php if ($user[0]->user_level==3): ?>
                                <div class="useruloga">
                                    <div class="uk-badge">administrator</div>
                                </div>
                                <?php endif; ?>
                            </div>
                            <div class="uk-width-1-4 uk-text-center"><span class="uk-icon-user"></span></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <?php echo $menu ?>

        <div id="main">
            <div class="uk-container uk-container-center"  style="max-width:3000px !important">

                <div class="uk-grid">

                    <div class="uk-width-1-1 uk-text-center">

                        <!-- <div class="verzije">
                            <button class="uk-button snimi uk-button-primary" id="ajaxlink" type="button" onClick="saveFile(); loadingon();">Snimi</button>
                            
                            <div id="ver">
                                <div class="loading uk-progress uk-progress-small uk-progress-striped uk-active" style="display:none">
                                    <div class="uk-progress-bar" style="width: 10%;"></div>
                                </div> 
      
                            </div>
                        </div>  -->
                       
                    </div>

                    <div id="verzijeload" class="verzijeload">

                        <div id="main2"  class="uk-width-1-1">
                            <div class="uk-grid">
                                <div class="uk-width-1-5">                    
                                    <div id="organogramload" class="uk-panel uk-panel-box uk-panel-box-secondary">
                                        <h3 class="uk-panel-title"><i class="uk-icon-cog"></i> <?php echo $sectors[0]->sector_name;?></h3>
                                        
                                        <ul id="organogram" class=" uk-list   uk-width-1-1 ">                             
                                    
                                            <?php foreach ($sectors as $sector): ?>   
                                            <li class="uk-panel uk-panel-box uk-panel-box-secondary">
                                                <ul class=" uk-list uk-list-line uk-width-1-1  ">
                                                     
                                                    <?php foreach ($sector->rm as $rm): ?>
                                                    <?php 
                                                        $radnoMesto = trim($rm->user_radnomesto);
                                                        $radnoMestoLink = str_replace(' ', '-', $radnoMesto);
                                                    ?>
                                                    <li>
                                                        <p class=" uk-vertical-align"><span class="uk-vertical-align-middle"><a href="#<?php  echo $radnoMestoLink  ?>" data-uk-smooth-scroll><?php  echo $radnoMesto  ?></a></span></p>
                                                    </li>

                                                    
                                                    <?php endforeach;  ?>
                                                     
                                                </ul>
                                            </li>
                                            <?php endforeach;  ?>
                                        
                                        </ul>
                                    </div>
                                </div>
                                <div id="organogramnoviload" class="uk-width-4-5">
                                
                                    <div class="uk-panel uk-panel-box uk-panel-box-secondary organogramnovi">
                                        <h3 class="uk-panel-title"><i class="uk-icon-cog"></i> Organogram novi</h3>
                                        <div>
                                            <span id="edit"><a class="uk-button uk-button-primary"  type="button">Izmeni tekst</a></span>
                                            <span id="snimitabelu"><a class="uk-button uk-button-primary" type="button">Zakljucaj</a></span>
                                            <span id="hideshow"><a class="grid uk-button uk-button-primary" type="button">Pomoćne linije</a></span>
                                            <span id="saveword"><button class="uk-button uk-button-primary" type="button">Save for Word</button></span>
                                        </div>
                                        <table class="uk-table" id="glavnatabela">
                                             <tbody>
                                                <tr>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <span class="prvispan"></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                       
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                       
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                       
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                      
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        
                                                        <span class="prvispan"></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        
                                                        <span class="prvispan"></span>
                                                    </td>
                                                    <td>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        <div></div><div></div>
                                                        
                                                        <span class="prvispan"></span>
                                                    </td>
                                                </tr>
                                                 
                                            </tbody>
                                        </table>
                                        <div class="redoviadddelete">
                                            <form id="redoviForma">
                                                <span id="redAdd"><button class="uk-button uk-button-primary"  type="button">Dodaj red</button></span> 
                                                <input type="text" class="brojredova" placeholder="1" />
                                                <span id="redDelete"><button class="uk-button uk-button-danger"  type="button">Obrisi red</button></span>
                                                <input type="text" class="brojredova2" placeholder="1" />
                                                <span id="kolonaAdd"><button class="uk-button uk-button-primary"  type="button">Dodaj kolonu</button></span> 
                                            </form>
                                        </div>
                                    </div>                                
                                    <?php foreach ($questionares as $questionare): ?>     
                                    <div class="nazivSektora" id="<?php //echo $nazivSektora; ?>">    
                                    <section>
                                        <article id="<?php  echo $questionare->user_radnomesto  ?>">

                                            <p class="Heading1">OPIS POSLOVA I ZADATAKA</p>

                                            <p class="Heading1">1. Identifikacija</p>

                                            <p>1.1. Naziv radnog mesta: <?php echo $questionare->user_radnomesto ?></p>
                                            <p>1.2. Ime i prezime: <?php echo $questionare->first_name.' '.$questionare->last_name ?></p>
                                            <p>1.3. Lokacija: <?php echo $questionare->upitnik_1_3 ?></p>
                                            <p>1.4. Sektor: <?php echo $questionare->sector_name ?></p>
                                            <p>1.5. Naziv radnog mesta nadređene osobe kojoj raportira za svoj rad: <?php echo $questionare->upitnik_1_5 ?></p>

                                            <p  class="Heading1">2. Sadržaj posla</p>
                                            <p>2.1.Svrha posla: </p>
                                            <p><?php echo $questionare->upitnik_2_1 ?></p>
                                            <p>2.2. Zaduženja i odgovornosti na poslu:</p>
                                            <p><?php echo $questionare->upitnik_2_2_1 ?></p>
                                            <p><?php echo $questionare->upitnik_2_2_2 ?></p>
                                            <p><?php echo $questionare->upitnik_2_2_3 ?></p>
                                            <p><?php echo $questionare->upitnik_2_2_4 ?></p>
                                            <p><?php echo $questionare->upitnik_2_2_5 ?></p>
                                            <p><?php echo $questionare->upitnik_2_2_6 ?></p>
                                            <p><?php echo $questionare->upitnik_2_2_7 ?></p>
                                            <p>2.3.Ključni Kontakti:</p>
                                           
                                              <p>- Interni kontakti: <?php echo $questionare->upitnik_2_7_1 ?> </p>
                                              <p>- Eksterni kontakti: <?php echo $questionare->upitnik_2_7_2 ?></p>
                                      
                                            <p  class="Heading1">3. Specifičnosti</p>
                                            <p>Osnovni zahtevi</p>
                                            <p>3.1. Obrazovanje: <?php echo $questionare->upitnik_3_1 ?></p>
                                            <p>3.2. Iskustvo: <?php echo $questionare->upitnik_3_2 ?> </p>
                                            <p>Dodatni zahtevi</p>
                                            <p>3.3. Stručna znanja:</p>
                                   
                                              <p>- <?php echo $questionare->upitnik_3_3 ?></p>                                              
                                          
                                            <p>3.4. Ostale kompetencije:</p>
                                          
                                              <p>- <?php echo $questionare->upitnik_3_4 ?></p>
                                              <p>- <?php echo $questionare->upitnik_3_5 ?></p>
                                          
                                            <p>Okolnosti</p>
                                            <p>3.5. Mobilnost na radnom mestu:</p>
                                              <p>- <?php echo $questionare->upitnik_3_6 ?> </p>
                                             <p>3.6. Zaduženja za opremu i ostalo:</p>
                                              <p>- <?php echo $questionare->upitnik_3_7 ?></p>
                                              <p>- <?php echo $questionare->upitnik_3_8 ?></p>
                                        <?php //endforeach; ?>
                                        </article>
                                    <?php endforeach; ?>
                                    </section>
                                    </div>
                                </div>
                                <!-- organogramnovi load -->

                            </div>
                        </div>
                    </div><!-- verzije load -->
                </div>
            </div>
        </div>  <!-- main end  --> 
        <div id="futer">
            <div class="uk-container uk-container-center uk-text-center">
 Merit Plan &copy; 2013 
            </div>
        </div>
        <div id="canvashtml"></div>
        <!-- Scripts -->
        <script src="<?php echo base_url() ?>js/vendor/jquery-1.11.0.min.js"></script>
        <!--<script src="<?php echo base_url() ?>js/vendor/jquery-ui.js"></script>-->
        <script src="<?php echo base_url() ?>js/vendor/jquery-ui-1.10.3.custom.min.js"></script>
        <script type="text/javascript">

        </script>
        <script type="text/javascript" src="<?php echo base_url() ?>js/ajax_link.js"></script>
        <script src="<?php echo base_url() ?>js/vendor/uikit.min.js"></script>
        <script src="<?php echo base_url() ?>js/organogram-plugins.js"></script>
        <script src="<?php echo base_url() ?>js/organogram-sektor.js"></script>
        <script type="text/javascript">
            jQuery(function($) {
                init_main();
                init_draggables_and_droppables();
                init_wordsave();
             });
        </script>
        <script type="text/javascript">
        
            
        </script>

        <!-- Google Analytics -->

    </body>
</html>
